$w: 448px;
$padding: 30px;
.ui-modal {
  display: inline-block;
  width: $w;
  text-align: left;
  background: $color-white;
  border-radius: $radius-normal;
  transition: all .2s ease;
  box-shadow: 0 0 3px rgba(#000, .2);

  .modal-head {
    height: 56px;
    line-height: 56px;
    padding-left: $padding;
    padding-right: $padding;
    border-bottom: 1px solid $color-border;
  }
  .modal-close {
    float: right;
    cursor: pointer;
  }
  .modal-body {
    padding: $padding;
  }
  .modal-footer {
    border-top: 1px solid $color-border;
    padding: 12px $padding;
    height: 58px;
    .ui-button {
      float: right;
      margin-left: 16px;
    }
  }
}

.ui-mask {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  width: 100%;
  display: table;
  text-align: center;
  vertical-align: middle;
  background: rgba(#000, .1);
  transition: opacity .3s ease;
  .mask-wrapper {
    display: table-cell;
    vertical-align: middle;
  }
}

.modal-enter {
  opacity: 0;
}

.modal-leave-active {
  opacity: 0;
}

.modal-enter .ui-modal,
.modal-leave-active .ui-modal {
  transform: scale(1.1);
}